/*
 * HelpDialog.java
 *
 * Created on September 27, 2008, 3:22 PM
 */

package gui;

/**
 *
 * @author  Administrador
 */
public class HelpDialog extends javax.swing.JDialog {

    /** Creates new form HelpDialog */
    public HelpDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        setLocationByPlatform(true);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        dialogPanelCenter = new javax.swing.JPanel();
        toadIcon = new javax.swing.JLabel();
        dialogPanelInf = new javax.swing.JPanel();
        labelSup = new javax.swing.JLabel();
        dialogPanelSup = new javax.swing.JPanel();
        labelInf = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                formMouseClicked(evt);
            }
        });

        dialogPanelCenter.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 0, 0));

        toadIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/toad.png"))); // NOI18N
        dialogPanelCenter.add(toadIcon);

        getContentPane().add(dialogPanelCenter, java.awt.BorderLayout.CENTER);

        labelSup.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        labelSup.setText("<html><center> Open Source Software:<br />\nThis is OpenSource software, licenced in the GPLv3<br />\nMore info, visit the gpl web site.<br /> \n<br /> \nCsv2sql-java -> Version MILESTONE<br />\n<br /> I don't responsability for use!<br />\n\n<b> FOR MORE HELP, PLEASE VISIT: <br />\nhttp://csv2sql-java.code.google.com");
        dialogPanelInf.add(labelSup);

        getContentPane().add(dialogPanelInf, java.awt.BorderLayout.PAGE_START);

        labelInf.setText("<html><center>\nSoftware designed by: Joao Neto -- joao_neto@ymail.com <br />\n<br />\n2008 - Joao Neto <br />\n<red> Click in the dialog to close </red>");
        dialogPanelSup.add(labelInf);

        getContentPane().add(dialogPanelSup, java.awt.BorderLayout.PAGE_END);

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void formMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseClicked
     this.dispose();
}//GEN-LAST:event_formMouseClicked


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel dialogPanelCenter;
    private javax.swing.JPanel dialogPanelInf;
    private javax.swing.JPanel dialogPanelSup;
    private javax.swing.JLabel labelInf;
    private javax.swing.JLabel labelSup;
    private javax.swing.JLabel toadIcon;
    // End of variables declaration//GEN-END:variables

}
